package generator.template;

public class IncludesGenerator {

	public static String generate(String path, String type, String element, int includesCounter) {
		return "\n\t\tprivate function includes"+type+""+includesCounter+"(colecao:Vector.<"+type+">):Boolean{\n"+
				"\t\t\tfor each (var value:"+type+" in colecao){\n"+
				"\t\t\t\tif(value.Equals("+element+"){\n"+
				"\t\t\t\t\treturn true;\n"+
				"\t\t\t\t}\n"+
				"\t\t\t}\n"+
				"\t\t\treturn false;\n"+
				"\t\t}\n";
	}

}
